package com.hl.hailang.tuwenbianji.adapter;

import com.bumptech.glide.Glide;
import com.hj.recyclerview.BaseAdapter;
import com.hj.recyclerview.BaseViewHolder;
import com.hl.apilibrary.bean.TTF;
import com.hl.hailang.R;

import java.util.List;

public class TtfAdapter extends BaseAdapter<TTF> {
    public TtfAdapter(List<TTF> d) {
        super(d);
    }

    @Override
    protected boolean hasHeaderView() {
        return false;
    }

    @Override
    protected boolean hasLoadmoreView() {
        return false;
    }

    @Override
    public void mBindViewHolder(BaseViewHolder holder, int position) {
        final TTF ttf = mData.get(position);
        Glide.with(holder.itemView).load(ttf.getImage()).into(holder.getImageView(R.id.iv_ttf));
    }

    @Override
    public int getItemLayoutId() {
        return R.layout.item_ttf;
    }
}
